<?php

namespace Chat;

use Zend\Mvc\MvcEvent;
use Zend\EventManager\EventInterface;
use Zend\EventManager\StaticEventManager;

class Module 
{
	
	public function onBootstrap(MvcEvent $e)
	{
			//$viewModel = $e->getViewModel()->setVariables(array('chatMenu' => $this->chatMenuHtml));			
			$eventManager        = $e->getApplication()->getEventManager();
        $sharedManager = $eventManager->getSharedManager();
        $sm = $e->getApplication()->getServiceManager();
			//$headLink = $sm->get('viewhelpermanager')->get('headLink');
			//$headLink->appendStylesheet('/public/css/chat.css');
			
        //\FB::info('onBootstrap Chat');
			
			
			
			
	}
	
	public function getConfig()
	{
		return include __DIR__ . '/config/module.config.php';
	}
	
	public function getAutoloaderConfig()
	{
		
		return array(
				'Zend\Loader\StandardAutoloader' => array(
						'namespaces' => array(
								__NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__
								)
						)
				);
		
	}
	
	public function getViewHelperConfig(){
		return array(
				'invokables' => array(
						'ChatHelper' => 'Chat\View\Helper\ChatHelper',
						'ChatCSSHelper' => 'Chat\View\Helper\ChatCSSHelper',
						'ChatJSHelper' => 'Chat\View\Helper\ChatHelper',
						//'chatUsers' => 'Chat\View\Helper\ChatUsersHeper',
				)
		);
	}
	

	
}

